import myRequest from "@/api/request";
import mockRequest from "@/api/mockAjax";

export let reqGetBaseCategoryList = () => {
    return myRequest({
        url: '/product/getBaseCategoryList',
        method: 'get'
    });
}

export let reqGetBannerList = () => {
    return mockRequest({
        url: '/banner',
        method: 'get'
    });
}

export let reqGetFloorList = () => {
    return mockRequest({
        url: '/floor',
        method: 'get'
    });
}

export let reqGetSearchInfo = (param = {}) => {
    return myRequest({
        url: '/list',
        method: 'post',
        data: param
    })
}

export let reqGetGoodInfo = (skuId) => {
    return myRequest({
        url: '/item/'+skuId,
        method: 'get',
    })
}
